package com.jinke.api.modules.ums.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.jinke.api.modules.ums.mapper.UmsAdminUserRelationMapper;
import com.jinke.api.modules.ums.model.UmsAdminUserRelation;
import com.jinke.api.modules.ums.service.UmsAdminUserRelationService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author macro
 * @since 2023-06-27
 */
@Service
public class UmsAdminUserRelationServiceImpl extends ServiceImpl<UmsAdminUserRelationMapper, UmsAdminUserRelation> implements UmsAdminUserRelationService {


    @Override
    public UmsAdminUserRelation getByAdminID(Long adminId) {
        LambdaQueryWrapper<UmsAdminUserRelation> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.eq(UmsAdminUserRelation::getAdminId, adminId);
        return getOne(queryWrapper);
    }

}
